/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2022 All Rights Reserved.
 */
package com.example.spider.provider.why10w.deprecated.why10org;

/**
 * @author lym
 */
public enum Why10orgCategoryEnum {

    buru("dongwu", "buru", "哺乳类"),
    paxing("dongwu", "paxing", "爬行类"),
    niao("dongwu", "niao", "鸟类"),
    yu("dongwu", "yu", "鱼类"),
    kunchong("dongwu", "kunchong", "昆虫"),
    weishengwu("dongwu", "weishengwu", "微生物"),
    gushengwu("dongwu", "gushengwu", "古生物"),

    caoben("zhiwu", "caoben", "草本"),
    muben("zhiwu", "muben", "木本"),

    shengli("renti", "shengli", "生理"),
    naoyu("renti", "naoyu", "脑域"),
    yichuan("renti", "yichuan", "遗传"),

    shehui("renwen", "shehui", "社会"),
    jingji("renwen", "jingji", "经济"),
    jianzhu("renwen", "jianzhu", "交通建筑"),

    renwu("renwen", "renwu", "人物历史"),
    tiyu("renwen", "tiyu", "体育"),
    zhengzhi("renwen", "zhengzhi", "政治"),

    jiankang("shenghuo", "jiankang", "健康"),
    yinshi("shenghuo", "yinshi", "饮食"),
    haizi("shenghuo", "haizi", "孩子"),
    zainan("shenghuo", "zainan", "灾难防护"),

    dili("diqiu", "dili", "地理"),
    qixiang("diqiu", "qixiang", "气象"),
    haiyang("diqiu", "haiyang", "海洋"),
    huanjing("diqiu", "huanjing", "环境"),
    nengyuan("diqiu", "nengyuan", "能源"),

    tianti("tianwen", "tianti", "天体"),
    hangtian("tianwen", "hangtian", "航天"),

    shuxue("kexue", "shuxue", "数学"),
    wuli("kexue", "wuli", "物理"),
    huaxue("kexue", "huaxue", "化学"),
    yixue("kexue", "yixue", "医学"),

    dianzi("keji", "dianzi", "电子"),
    hulianwang("keji", "hulianwang", "互联网"),

    junshi("guofang", "junshi", "军事"),
    wuqi("guofang", "wuqi", "武器"),

    ;
    private final String firstCategory;

    private final String secondCategory;

    private final String displayName;

    Why10orgCategoryEnum(String firstCategory, String secondCategory, String displayName) {
        this.firstCategory = firstCategory;
        this.secondCategory = secondCategory;
        this.displayName = displayName;
    }

    public static Why10orgCategoryEnum getBySecondCategory(String secondCategory) {
        for (Why10orgCategoryEnum value : values()) {
            if (value.getSecondCategory().contains(secondCategory)) {
                return value;
            }
        }
        return null;
    }

    public String getFirstCategory() {
        return firstCategory;
    }

    public String getSecondCategory() {
        return secondCategory;
    }

    public String getDisplayName() {
        return displayName;
    }
}